﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 蓝牙注册工具.ViewModel
{
    public class ConfigViewModel:Notify
    {
        ObservableCollection<string> _Ports = new ObservableCollection<string>();
        public ObservableCollection<string> Ports { get => _Ports; set { SetProperty(ref _Ports, value); } }

        string _Port1 = "";
        public string Port1 { get => _Port1; set { SetProperty(ref _Port1, value); } }
        string _Port2 = "";
        public string Port2 { get => _Port2; set { SetProperty(ref _Port2, value); } }
        string _Port3 = "";
        public string Port3 { get => _Port3; set { SetProperty(ref _Port3, value); } }
        string _Port4 = "";
        public string Port4 { get => _Port4; set { SetProperty(ref _Port4, value); } }
        string _BtPort = "";
        public string BtPort { get => _BtPort; set { SetProperty(ref _BtPort, value); } }

        private string _ScanDelay;
        /// <summary>
        /// 蓝牙搜索时长
        /// </summary>
        public string ScanDelay { get { return _ScanDelay; } set { _ScanDelay = value; RaisePropertyChanged("ScanDelay"); } }

        private string _dBm;
        /// <summary>
        /// 蓝牙强度阈值
        /// </summary>
        public string dBm { get { return _dBm; } set { _dBm = value; RaisePropertyChanged("dBm"); } }
    }
}
